package logging

// ChannelFilter 通道过滤器
type ChannelFilter struct {
	Channel string // 通道
}

// Filter 过滤
func (f *ChannelFilter) Filter(rec *Record) bool {
	if len(f.Channel) > 0 && f.Channel != rec.Channel {
		return false
	}
	return true
}
